<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>无标题文档</title>
</head>


<script type="text/javascript">
    function divClick() {

        var show = "";
        var apm = document.getElementsByName("AdPrintMode");
        for (var i = 0; i < apm.length; i++) {
            if (apm[i].checked)
                show = apm[i].value;
        }

        switch (show) {
            case '1':
                document.getElementById("img1").style.display = "none";
                document.getElementById("img2").style.display = "block";
                break;
            case '2':
                document.getElementById("img1").style.display = "block";
                document.getElementById("img2").style.display = "none";
                break;
            case '3':
                document.getElementById("img1").style.display = "block";
                document.getElementById("img2").style.display = "block";
                break;
            default:
                document.getElementById("img1").style.display = "none";
                document.getElementById("img2").style.display = "none";
                break;
        }
    }  
</script>

<body>

<div class="form_row">  
        <label>底部打印模式:</label>  
          
        <input name="AdPrintMode" type="radio" value="1" onclick="divClick();" />指定图片  
          
        <input name="AdPrintMode" type="radio" value="2" onclick="divClick();"/>指定二维码+用户心情文字  
        <input name="AdPrintMode" type="radio" value="3" onclick="divClick();"/>无广告   
          
        </div>  
         
              <div class="form_row" id="img1" >  
                    <label>img1:</label>  
                     <img src="{$shows.AdQrCodeUrl}" width=80 id="AdQrCodeUrl_img">    
              </div>  
                      
              <div class="form_row" id="img2">  
                    <label>img2:</label>  
                    <img src="{$shows.AdImgUrl}" width=300 id="AdImgUrl_img">             
            </div>  
</body>

</html>